﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;

namespace TaskProgramming
{
    class _002_Wait
    {
        public static void Test()
        {
            var task = Task.Factory.StartNew(() =>
            {
                Thread.Sleep(1000);

                return "段光伟";
            });

            Console.WriteLine(task.Result);
        }
    }
}
